<?php
require_once(dirname(__FILE__)."/config.php");
CheckPurview('temp_One');
require_once(DEDEINC."/datalistcp.class.php");
setcookie("ENV_GOBACK_URL",$dedeNowurl,time()+3600,"/");
$data1="../data/1.txt"; 
$data2="../data/11.txt"; 
if($dopost=='')
{

//读文件 
$fp   =   fopen($data1, "r"); 
$msg   =   fread($fp,filesize($data1)); 
fclose($fp); 

$sql = "Select * From `#@__member`";
$dlist = new DataListCP();
$dlist->SetTemplet(DEDEADMIN."/templets/biaoz_add.htm");
$dlist->SetSource($sql);
$dlist->display();
}
else if($dopost=='110')
{
$fp   =   fopen($data2, "r"); 
$msg   =   fread($fp,filesize($data2)); 
$fpp=fopen($data1, "w"); 
fwrite($fpp, $msg); 
fclose($fp); 
fclose($fpp); 
ShowMsg("还原成功","biaoz_add.php");
exit();

}
else
{

$fp=fopen($data1, "w"); 
$bz=str_replace('\\','',$bz);
fwrite($fp, $bz); 
fclose($fp); 
ShowMsg("修改成功","biaoz_add.php");
exit();

}

?>